From d879c6099af61f083233ae19211aa18452d46ea9 Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Wed, 1 Oct 2014 19:37:10 +0000 Subject: [PATCH] sensible-lomua =================================================================== Gbp-Pq: Name sensible-lomua.diff --- .../data/org/openoffice/Office/Common.xcu | 2 +- shell/source/unix/misc/senddoc.sh | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu index dcb3f70edda..2a5fc0ee2f6 100644 --- a/officecfg/registry/data/org/openoffice/Office/Common.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu @@ -659,7 +659,7 @@ - + sensible-lomua diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index cb287e67986..8dc4b0b07dc 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -77,6 +77,30 @@ if [ "$1" = "--mailclient" ]; then shift fi +case `basename "$MAILER"` in + sensible-lomua) + if [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] \ + || [ -x /usr/bin/gnome-open ] \ + || [ -x /usr/bin/xdg-open ]; then + # use an undefined mailer, to trigger the default handling + MAILER=undefined + elif [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then + MAILER=/usr/bin/evolution + elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then + MAILER=/usr/bin/kmail + elif [ -x /usr/bin/evolution ]; then + # default + MAILER=/usr/bin/evolution + elif [ -x /usr/bin/icedove ]; then + # fallback + MAILER=/usr/bin/icedove + elif [ -x /usr/bin/thunderbird ]; then + # fallback + MAILER=/usr/bin/thunderbird + fi + ;; +esac + # autodetect mail client from executable name case `basename "$MAILER" | sed 's/-.*$//'` in -- 2.30.2